<template>
  <div style="width:100%;height:100%;overflow:hidden">
    <weui-cell :list="cell_0_list">
    </weui-cell>
  </div>
</template>

<script>
  import WeuiCell from '../vue2componentSet/src/components/WeuiCell'

  export default {
    components: {
      WeuiCell
    },
    data() {
      return {
        cell_0_list: [{
          value: '订单统计',
          link: '#/billData'
        }, {
          value: '访问统计',
          link: '#/logData'
        }, {
          value: '登录淘宝',
          link: '#/loginTaobao'
        }, {
          value: '获取淘宝订单',
          link: '#/getTaobaoBill'
        }, {
          value: '登录京东',
          link: '#/loginJd'
        }, {
          value: '获取京东订单',
          link: '#/getJdBill'
        }, {
            value: '推荐人',
            link: '#/promoterList'
        }, {
            value: '拉新活动（4至6月）',
            link: '#/activity0Admin'
        }, {
            value: '分配订单、反现订单',
            link: '#/handleBill'
        }, {
            value: '活动列表',
            link: '#/activityList'
        }]
      }
    },
    mounted() {
      this.$store.commit('set_title', '管理员菜单')

      if (!this.$store.state.admin) {
        this.$router.goback()
        return
      }
    }
  }
</script>
